//将极坐标转换为直角坐标
#include <stdio.h>
#include <math.h>
void eatline(void);
int main(void)
{
	double mo,jiaodu;
	double consequence[2];//x,y
	puts("输入极坐标的结构（模长，角度（使用弧度制））");
	scanf_s("%lf", &mo);
	puts("next");
	scanf_s("%lf", &jiaodu);
	consequence[0] = mo * cos(jiaodu);
	consequence[1] = mo * sin(jiaodu);
	printf("%lf\n", consequence[0]);
	printf("%lf", consequence[1]);
}

void eatline(void)
{
	char ch;
	while ((ch = getchar()) != '\n')
		continue;

}